"use strict";
exports.__esModule = true;
var pdf_insuranceInstituationalClaim_1 = require("./pdf.insuranceInstituationalClaim");
var PdfPrinter = require('pdfmake');
var fs = require('fs');
var test_1 = require("./test");
var fontpath1 = (__dirname + '/fonts/Roboto-Regular.ttf');
var fontpath2 = (__dirname + '/fonts/Roboto-Medium.ttf');
var fontpath3 = (__dirname + '/fonts/Roboto-Italic.ttf');
var fontpath4 = (__dirname + '/fonts/Roboto-MediumItalic.ttf');
var fonts = {
    Roboto: {
        normal: fontpath1,
        bold: fontpath2,
        italics: fontpath3,
        bolditalics: fontpath4
    }
};
var printer = new PdfPrinter(fonts);
var pdfIns = new pdf_insuranceInstituationalClaim_1["default"]();
var docDefinition = pdfIns.getPDFDefinition(test_1.claim);
var pdfDoc = printer.createPdfKitDocument(docDefinition);
pdfDoc.pipe(fs.createWriteStream(__dirname + '/pdfmake_output.pdf'));
pdfDoc.end();
